package com.yunyao.dao.service.bamu;

import com.yunyao.common.dto.ReceiptSaveDto;
import com.yunyao.common.dto.SubmitReceiptDto;
import com.yunyao.dao.model.BamuReceipt;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 收据信息表 服务类
 * </p>
 *
 * @author xingjishuai
 * @since 2024-07-02
 */
@Validated
public interface IBamuReceiptService extends IService<BamuReceipt> {


    /**
     * 收据-提交
     * @param dto
     * @return
     */
    boolean submitReceipt(@Valid @NotNull SubmitReceiptDto dto);


    /**
     * 添加or修改
     * @param dto
     * @return
     */
    boolean saveOrUpd(@Valid @NotNull ReceiptSaveDto dto);

    BamuReceipt detail(@NotBlank String bizId, @NotBlank String bizType);
}
